# Makefile created by MaShang(gcc version 4.4.3)

CPP  = arm-linux-g++
CC   = arm-linux-gcc
#CPP   = gcc -E
#CC    = gcc

WINDRES =
RES  = 
OBJ  = check_session.o  $(RES)
LINKOBJ  = check_session.o $(RES)
LIBS += -L ./lib -lsqlite3 -lpthread -ldl
INCS += -I ./include 
CXXINCS = 
BIN  = check_session.cgi 
CXXFLAGS = $(CXXINCS)  
CFLAGS = $(INCS)  
RM = rm -f

.PHONY: all clean clean-custom

all: check_session.cgi 


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CC) -static  -g -o check_session.cgi check_session.c $(LIBS) $(CFLAGS)

check_session.o: check_session.c
	$(CC) -g -c check_session.c -o check_session.o $(CFLAGS)

